import request from '@/utils/request'

export const searchApi = {
  // 搜索接口
  search(params) {
    return request({
      url: '/api/search',
      method: 'GET',
      params
    })
  },
  
  // 获取热门搜索
  getHotSearches() {
    return request({
      url: '/api/search/hot',
      method: 'GET'
    })
  },
  
  // 获取搜索建议
  getSuggestions(keyword) {
    return request({
      url: '/api/search/suggestions',
      method: 'GET',
      params: { keyword }
    })
  }
} 